#ifndef QPUSHBUTTONWIDGET_H
#define QPUSHBUTTONWIDGET_H

#include <qpushbutton.h>
#include <qwidget.h>

class QPushButtonWidget: public QPushButton
{
    Q_OBJECT
public:
    explicit QPushButtonWidget( QWidget *parent = nullptr );
    ~QPushButtonWidget();
    enum class ButtonType {
        TYPE_DEFAULT = 0,
        TYPE_PRIMARY,
        TYPE_SUCCESS,
        TYPE_INFO,
        TYPE_WARNING,
        TYPE_DANGER
    };
    void setButtonType(ButtonType type);
    void setTextValue(const QString &text);
    void setTextColor(const QColor &color);
    void setStyle(const QString &style);
    void setWidth(int width);
    void setHeight(int height);
private:
    ButtonType type;
};

#endif // QPUSHBUTTONWIDGET_H
